package com.huluwa.jczq.cooperation.YaoSen;

import com.huluwa.jczq.util.Parser;

import java.util.HashMap;

/**
 * Created by hancongcong on 2018/6/22.
 */
public class YaoSen_BetParser {
    /**
     * 此处定义投注定位方式
     */
    //彩种编号
    public static final String YaoSen_lotIdSelector = ".*\"lotId\":\"(101|102|103|104|105|106)\".*";
    //代理商订单号
    public static final String YaoSen_ticketIdSelector = "";
    //投注内容
    public static final String YaoSen_stakeInfoSelector = "";
    //注数
    public static final String Yaosen_betNumSelector = "";
    //倍数
    public static final String Yaosen_betTimesSelector = "";
    //金额
    public static final String Yaosen_betAmountSelector = "";


    //{"cmd":"10001","lotId":"103","issue":"","message":"180011632018062114853482#0^F20180621022,3#1#2#4|180011632018062114853482#0^F20180621022,3#1#2#4"}

    //{“cmd”:”10001”,”lotId”:”彩种编号”,issue”:”奖期”,”message”:”票信息”}
    //格式：代理商订单号#投注内容#注数#倍数#金额
    //各彩种投注串请参见投注内容详情
    //多张以 | 分隔，最多100张

    /*public HashMap<String,String> betParser(String ticketId){
        HashMap<String,String> ticketInfo = new HashMap<String,String>();

    }*/
    public static void main(String[] argv){
        String msg = "{\"cmd\":\"10001\",\"lotId\":\"103\",\"issue\":\"\",\"message\":\"180011632018062114853482#0^F20180621022,3#1#2#4|180011632018062114853482#0^F20180621022,3#1#2#4\"}";
        Parser parser = new Parser();
        String parserStr = parser.getStrMsgByTicketId("180011632018062114853482",YaoSen_lotIdSelector,msg);
        System.out.println(parserStr);
    }
}
